package top.didi.study.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

@Data
@TableName("tb_cpu")
public class TbCpu implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    //数据库 primary key auto_increment
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String cpu;
    private String manufacturer;
    private String info;
    private Integer cores;
    private Integer threads;
    private String frequency;
    private String maxFrequency;
    //如果有默认值，不想填写就用下面的注解标注
    //insertStrategy是添加策略，updateStrategy是修改策略
    //NEVER表示不要插入和更新
    @TableField(insertStrategy = FieldStrategy.NEVER,updateStrategy = FieldStrategy.NEVER)
    private Date releaseDate;
}
